<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../themes/icon.css">
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
    <title>Document</title>
</head>
<body>
    <table id="dg"></table>
    <div id="dlg" class="easyui-dialog" title="Basic Dialog" data-options="iconCls:'icon-save'" style="width:400px;height:200px;padding:10px">
        The dialog content.
    </div>
</body>
</html>
<script>   
    $('#dg').datagrid({
        url:'http://localhost:3000/users/list',
        fit:true,
        pagination:true,
        pageSize:5,
        
        pageList:[5,10,20,30,40,50],
        columns:[[
            {field:'email',title:'email'}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
        ]],
        toolbar: [{
            iconCls: 'icon-add',
            handler: function(){
                $('#dlg').dialog('open');
            }
        },'-',{
            iconCls: 'icon-remove',
            handler: function(){alert('remove')}
        },'-',{
            iconCls: 'icon-edit',
            handler: function(){alert('edit')}
        },'-',{
            iconCls: 'icon-help',
            handler: function(){alert('help')}
        }]
        });
</script>